package com.wch.dao;

import com.wch.pojo.User;

import java.util.List;

public interface IUserDao {
    //查询所有
    public List<User> findAll() throws Exception;
    //查询用户
    public User findByArgs(User user) throws Exception;
    //添加用户
    public String addUser(User user) throws Exception;
    //更新用户
    public String updateByUser(User user) throws Exception;
    //按照id删除用户
    public String deleteByUserId(User user) throws Exception;
}
